package com.jinmdz.fmis.api.admin.model.button;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 按钮请求数据
 *
 * @author LiCongLu
 * @date 2020-03-18 17:06
 */
@ApiModel(value = "按钮请求数据", description = "按钮请求数据")
public class ButtonSaveData extends BaseBean {
    /**
     * 主键
     */
    @AnValidate(name = "主键", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    private Integer id;

    /**
     * 菜单主键
     */
    @AnValidate(name = "菜单主键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "菜单主键", name = "businessSystemMenuId", position = 2)
    private Integer businessSystemMenuId;

    /**
     * 按钮名称
     */
    @AnValidate(name = "按钮名称", required = true)
    @ApiModelProperty(value = "按钮名称", name = "buttonName", position = 3)
    private String buttonName;

    /**
     * 按钮描述
     */
    @AnValidate(name = "按钮描述", required = true)
    @ApiModelProperty(value = "按钮描述", name = "buttonDescribe", position = 4)
    private String buttonDescribe;

    /**
     * 禁用状态
     */
    @AnValidate(name = "禁用状态", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "禁用状态", name = "disableState", position = 5)
    private Integer disableState;

    /**
     * 排序
     */
    @AnValidate(name = "排序", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "排序", name = "sort", position = 6)
    private Integer sort;

    /**
     * 备注
     */
    @AnValidate(name = "备注")
    @ApiModelProperty(value = "备注", name = "remark", position = 7)
    private String remark;

    /**
     * 数据版本号
     */
    @AnValidate(name = "数据版本号")
    @ApiModelProperty(value = "数据版本号", name = "version", position = 8)
    private Long version;

    public Integer getId() {
        return id;
    }

    public ButtonSaveData setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getBusinessSystemMenuId() {
        return businessSystemMenuId;
    }

    public ButtonSaveData setBusinessSystemMenuId(Integer businessSystemMenuId) {
        this.businessSystemMenuId = businessSystemMenuId;
        return this;
    }

    public String getButtonName() {
        return buttonName;
    }

    public ButtonSaveData setButtonName(String buttonName) {
        this.buttonName = buttonName;
        return this;
    }

    public String getButtonDescribe() {
        return buttonDescribe;
    }

    public ButtonSaveData setButtonDescribe(String buttonDescribe) {
        this.buttonDescribe = buttonDescribe;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public ButtonSaveData setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public ButtonSaveData setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ButtonSaveData setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public ButtonSaveData setVersion(Long version) {
        this.version = version;
        return this;
    }
}
